package com.bfs.anasit.service;

import com.bfs.anasit.model.Patient;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: lukman
 * Date: 6/11/11
 * Time: 8:42 PM
 * To change this template use File | Settings | File Templates.
 */

public interface PatientService {
    /**
	 * Get Patient with the associated patientId.
	 * @param patientId - Employee ID
	 * @return Patient object if provided patientId is
	 * found in the data repository, otherwise return null
	 */
	public Patient findByPatientId(Long patientId);
	
	
	/**
	 * Get all Patient objects.
	 * @return collection of Patient objects
	 */
	public List<Patient> findAllPatients();
	
		
	/**
	 * Update the data repository with the 
	 * state of the provided Patient object.
	 * @param patient Person object
	 */
	public void update(Patient patient);
	
	
	/**
	 * Remove the associated Patient
	 * record from the data repository.
	 * @param patient
	 */
	public void delete(Patient patient);
	
	
	/**
	 * Save the state of the provided
	 * Patient object into the data
	 * repository.
	 * @param patient
	 */
	public void save(Patient patient);
}
